//
//  LYNetWorkRequest.swift
//  TodayNews
//
//  Created by ZhangBo on 2019/6/17.
//  Copyright © 2019 ZhangBo. All rights reserved.
//

import UIKit

import Alamofire
import SwiftyJSON


class NetWorkRequest: NSObject {
   
    class func request(url: String, params:[String: String]) -> DataRequest {
        return Alamofire.request(url, parameters: params).responseJSON { (response) in
            // 网络错误的提示信息
            guard response.result.isSuccess else {
                return
            }
        }
    }
}
